package com.imstlife.vending.utils;

import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class VendingToast extends Toast {

    private TextView textView;



    /**
     * Construct an empty Toast object.  You must call {@link #setView} before you
     * can call {@link #show}.
     *
     * @param context The context to use.  Usually your {@link Application}
     *                or {@link Activity} object.
     */
    public VendingToast(Context context) {
        super(context);
        textView = new TextView(context);
        textView.setTextSize(30);
        setView(textView);

    }

    public void setText(String msg){
        textView.setText(msg);

    }
}
